# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-rlp
_pkgname=rlp
pkgver=4.1.0
pkgrel=1
pkgdesc='A package for Recursive Length Prefix encoding and decoding.'
url='https://pypi.org/project/rlp/#files'
arch=('any')
license=('MIT')
depends=('python' 'python-eth-utils')
makedepends=('python-setuptools' 'python-setuptools-markdown')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('021a27e13896a715ff408a2eee7482c6b286b8284bec7ec028b5cb7a0e8423d23b4e640ac6ceac3896c3de4e7fed0de32b5df01c5d9599a245209b86f061f578')

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1
}

